home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-09-28 | 1.2 KB | 32 lines |
- '*************************************
- '* AMOS Professional Interface *
- '* *
- '* Auto-centering *
- '* *
- '* (c) Europress Software *
- '* *
- '* Ronnie Simpson *
- '*************************************
- '
- Load "AMOSPro_Tutorial:Tutorials/Interface/Example_resource.abk"
- Resource Bank 16
- Resource Screen Open 0,640,200,0
- Flash Off : Curs Off : Cls 0 : Paper 0 : Pen 8
- Palette ,,,,$840,$C84,$FC8,$FEB
- Wait Vbl
- Locate 12,12 : Input "Please enter your full name-";N$
- Cls 0 : Curs Off
- Ink 9 : Box 0,0 To 639,199
- Pen 14 : Locate 0,3 : Centre "Box auto-centered on screen."
- Pen 15 : Locate 0,5 : Centre "Box expands to fit name entered."
- Pen 13 : Locate 0,19 : Centre "Button auto-centered within box."
- A$=A$+"BAse 80,40;"
- A$=A$+"SIze 1VATW32+,TH6*;"
- A$=A$+"BAse SW SX-2/,SH SY-2/;"
- A$=A$+"SAve 1;"
- A$=A$+"BOx 0,0,1,SX,SY;"
- A$=A$+"POutline 1VACX,10,1VA,0,3;"
- A$=A$+"BUtton 1,SX2/28-,YB8+,56,14,0,0,1;[UNpack 0,0,BP49+;PRint 8,4,'Quit',9;][BQ;]"
- A$=A$+"RUn 0,7;"
- A$=A$+"EXit;"
- X=Dialog Box(A$,1,"Hello "+N$)